package com.ruoyi.SuveryInterface.Imp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.SuveryInterface.Imp.domain.SysIdentityCases;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-07-11
 */
public interface SysIdentityCasesMapper extends BaseMapper<SysIdentityCases> {

    void insertBatch(@Param("dzmx") List<SysIdentityCases> dzmx);

    @Select("select * from sys_identity_cases where identity_id = #{identityId} and  type = 2 and n_ssdw ='被申请人'")
    List<SysIdentityCases> selectImplementNssdwByIdentityId(Long identityId);

//    @Select("select * from sys_identity_cases where identity_id = #{identityId} and  type = 1 ")
//    List<SysIdentityCases> selectCivilByIdentityId(Long identityId);
//
//    @Select("select * from sys_identity_cases where identity_id = #{identityId} and  type = 2 ")
//    List<SysIdentityCases> selectImplementByIdentityId(Long identityId);


    List<SysIdentityCases> selectSysIdentityCasesByIdentityId(@Param("identityId")Long identityId, @Param("type") String type);

    List<SysIdentityCases> selectSysIdentityCasesByIdentityIdNoType(@Param("identityId") Long identityId);
}
